<!--
/**
 * @fileoverview Task component
 * @license MIT
 * @author Rafal Pospiech <neuronet.io@gmail.com>
 * @package GanttElastic
 */
-->
<template>
  <TaskWithThinLine v-if="task.kind=='item'" :task="task"></TaskWithThinLine>
  <TaskWithBothText v-else :task="task"></TaskWithBothText>
</template> 
    <!-- <chart-text :task="task" v-if="root.state.options.chart.text.display"></chart-text> -->
 
<script>
import TaskWithBothText from './TaskWithBothText.vue';
import TaskWithThinLine from './TaskWithThinLine.vue';
import taskMixin from './Task.mixin.js';
export default {
  name: 'Task',
  components: {
    TaskWithBothText,
    TaskWithThinLine
  },
  inject: ['root'],
  props: ['task'],
  mixins: [taskMixin],
  data() {
    return {};
  }
};
</script>
